package com.bwie.goods.dao;

import com.bwie.goods.entity.OrderInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.goods.vo.ActivityVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author HouDing
 * @email 1398853436@qq.com
 * @date 2022-02-22 19:41:40
 */
@Mapper
public interface OrderInfoDao extends BaseMapper<OrderInfoEntity> {

    OrderInfoEntity findOrderById(Long id);

    OrderInfoEntity findOrderByOrderno(String orderno);

    ActivityVo findOrderByGoodId(Long goodsId);

    OrderInfoEntity check(@Param("userId") Long userId, @Param("goodsId") Long goodsId);
}
